package com.youlu.campus.entity;

import lombok.Data;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * 活动单位
 */
@Data
public class ActivityCaOrg {
    private String caOrganizationId;

    private String caOrganizationName;

    private String stampImage;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;

        if (o == null || getClass() != o.getClass()) return false;

        ActivityCaOrg that = (ActivityCaOrg) o;

        return new EqualsBuilder()
                .append(caOrganizationId, that.caOrganizationId)
                .append(caOrganizationName, that.caOrganizationName)
                .append(stampImage, that.stampImage)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(caOrganizationId)
                .append(caOrganizationName)
                .append(stampImage)
                .toHashCode();
    }
}
